Page({
  data: {
    header: [{
      cover: '封面',
      name: '名称',
      time: '时间',
    }],
    list: []
  },
  onShow() {
    this.get()
  },
  get() {
    let list = [];
    for (let i = 1; i <= 10; i++) {
      let obj = {
        cover: `cloud://could-3gpmtjxfc5eed68f.636f-could-3gpmtjxfc5eed68f-1304798122/avatar/${i}.jpg`,
        name: '未来酱',
        time: '2018-10-20'
      }
      list.push(obj)
    }
    list = [...list,...list]
    setTimeout(() => {
      this.setData({
        list
      })
    },2000)
  },
  add() {

  },
  async action(e) {
    let action = e.detail.action;
    let _id = e.detail._id;
    if (action == 'show') {

    }
    if (action == 'update') {

    }
    if (action == 'del') {

    }
  }
})